Numerical Experiments on Parameters¶

First, we import the required files and libraries

In [ ]:
import sys
sys.path.append('../src')

from PIKM_Inpainter import plotExperiments, plotExperimentRegularisation
import numpy as np
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from .autonotebook import tqdm as notebook_tqdm

On the ratio of erased pixels¶

In [ ]:
expPercent = plotExperiments(rho=1, sigma=0.5, lamb=0.5, percent=np.linspace(0, 1, 19))
18it [50:46, 263.08s/it]/Users/danielcortild/RuG Drive/Research/Paper PIKM/Code Python TOS/tests/../src/PIKM_Inpainter/Algorithm.py:79: RuntimeWarning: invalid value encountered in scalar divide
  self.R = lambda X1, X0: np.linalg.norm(X1 - X0) / np.linalg.norm(X0)
19it [53:17, 168.29s/it]
No description has been provided for this image

On the step size¶

In [ ]:
expRho = plotExperiments(rho=np.linspace(0.1, 1.9, 19), sigma=0.5, lamb=0.5, percent=0.5)
19it [49:46, 157.20s/it]
No description has been provided for this image

On the relaxation parameter¶

In [ ]:
expLamb = plotExperiments(rho=1, sigma=0.5, lamb=np.linspace(0.1, 1.4, 15), percent=0.5)
13it [31:49, 104.54s/it]/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/scipy/optimize/_minpack_py.py:177: RuntimeWarning: The iteration is not making good progress, as measured by the 
  improvement from the last five Jacobian evaluations.
  warnings.warn(msg, RuntimeWarning)
15it [34:26, 137.74s/it]
No description has been provided for this image

On the regularisation parameter¶

In [ ]:
expReg = plotExperiments(rho=1, sigma=np.linspace(1, 16, 16), lamb=0.5, percent=0.5)
16it [11:08, 41.80s/it]
No description has been provided for this image
In [ ]:
plotExperimentRegularisation(rho=1, sigmas=[0.0625, 0.25, 0.5, 1, 4, 16], lamb=0.5, percent=0.5, method="nesterov")
100%|██████████| 100/100 [00:51<00:00,  1.95it/s]
100%|██████████| 100/100 [00:51<00:00,  1.96it/s]
 67%|██████▋   | 67/100 [00:34<00:16,  1.96it/s]
 37%|███▋      | 37/100 [00:19<00:33,  1.90it/s]
 16%|█▌        | 16/100 [00:08<00:46,  1.80it/s]
 13%|█▎        | 13/100 [00:07<00:46,  1.85it/s]
100%|██████████| 6/6 [02:53<00:00, 28.90s/it]
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
Clipping input data to the valid range for imshow with RGB data ([0..1] for floats or [0..255] for integers).
No description has been provided for this image